xend: Consider ioemu devices for inactive managed domains
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Sep 2009 08:22:38 +0000 (09:22 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Sep 2009 08:22:38 +0000 (09:22 +0100)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendDomainInfo.py

index 249a62b667e01f3af23120fc4d8e41bb037f08a3..124c910768c54104230ca88295c6b9e5de271540 100644 (file)
@@ -3636,6 +3636,9 @@ class XendDomainInfo:
             
             config['VDI'] = config.get('VDI', '')
             config['device'] = config.get('dev', '')
+            if config['device'].startswith('ioemu:'):
+                _, vbd_device = config['device'].split(':', 1)
+                config['device'] = vbd_device
             if ':' in config['device']:
                 vbd_name, vbd_type = config['device'].split(':', 1)
                 config['device'] = vbd_name